<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\enum;
class OrderTotalPayTypeEnum extends BaseEnumAbtract
{


	CONST WXPAY = 1;

	CONST BLANCE = 2;

		/**
	 * @desc 根据类型获取对应名称
	 * @param $type
	 * @return mixed
	*/
	public static function getName($type)
	{
		// TODO: Implement getName() method.
		$type = intval($type);
		$arrayName = self::getArrayName();
		return isset($arrayName[$type]) ? $arrayName[$type] : '状态出错';

	}

		/**
	 * @desc 获取类型、名称数组
	 * @return mixed
	*/
	public static function getArrayName()
	{
		// TODO: Implement getName() method.
		return [
			self::WXPAY => "微信支付",
			self::BLANCE => "余额支付",
		];

	}

	}
